<?php
// +----------------------------------------------------------------------
// | snake
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2022 http://baiyf.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: NickBai <1902822973@qq.com>
// +----------------------------------------------------------------------
namespace app\adminchy\validate;

use think\Validate;

class RoleValidate extends Validate
{
    protected $rule =   [
        'role_name'  => 'require|unique:snake_role',
    ];

    protected $message  =   [
        'role_name.require' => '角色名称不能为空',
        'role_name.unique'     => '该角色已经存在',
    ];

}